
<%
  @topic = Topic.new
  @remark = Remark.new
%>

<%= form_tag( competition_create_topic_url, method: 'post') do %>
  <%= fields_for "topic", @topic do |f| %>
    <%= render partial: 'topics/fields', locals: { f: f } %>
  <% end %>
  <%= fields_for "remark", @remark do |f| %>
    <%= render partial: 'remarks/fields', locals: { f: f } %>
  <% end %>
  <input type="submit" value="提交" />
<% end %>
